<%@page import="java.util.List"%>
<%@page import="com.jfinal.plugin.activerecord.Page"%>
<%@page import="com.hongye.app.model.PaymentModel"%>
<%@page import="com.hongye.app.model.ReturnGoodsModel"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"
    pageEncoding="UTF-8"%>
 <% PaymentModel payment = (PaymentModel)request.getAttribute("payment"); %>
 <% ReturnGoodsModel returngoods = (ReturnGoodsModel)request.getAttribute("returngoods"); %>
<!doctype html>
<html class="fixed">
	<head>
		<!-- Basic -->
		<meta charset="UTF-8">
		<meta name="keywords" content="HTML5 Admin Template" />
		<meta name="description" content="Porto Admin - Responsive HTML5 Template">
		<meta name="author" content="okler.net">
		<!-- Mobile Metas -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<!-- Vendor CSS -->
		<link rel="stylesheet" href="../admin/css/bootstrap.css" />
		<link rel="stylesheet" href="../admin/css/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" href="../admin/css/select2.css" />
		<!-- Theme CSS -->
		<link rel="stylesheet" href="../admin/css/theme.css" />
		<!-- Skin CSS -->
		<link rel="stylesheet" href="../admin/css/default.css" />
		<!-- Theme Custom CSS -->
		<!-- Theme Custom ../admin/css -->
		<script src="../admin/js/modernizr.js"></script>
	</head>
	<body>
		<section role="main" class="content-body" style="margin-top: 50px;">
			<!-- start: page -->
			<section class="panel">
				<header class="panel-heading">
					<h2 class="panel-title">交易-详情</h2>
				</header>
				<div class="panel-body">
					<div class="panel-body">
						<p class="lead"> <span class="alternative-font">订单编号 <%=payment.get("ordersn") %></span> </p>
						<p>交易渠道：<%String channel=payment.getStr("channel");
									if(channel.equals("alipay")){out.println("支付宝");}else{out.println("微信");}%></p>
						<p>支付金额：<%=payment.get("money") %>元</p>
						<p>用户手机号：<%=payment.get("user_phone") %></p>
						<p>创建时间：<%=payment.get("c_time") %></p>
						<%int state_suc=payment.getInt("state"); if(state_suc == 2){%>
						<p>成功时间：<%=payment.get("successtime") %></p>
						<%}%>
						<%int stata_re=payment.getInt("state"); if(stata_re == 3){%>
						<p>退款时间：<%=payment.get("back_time") %></p>
						<p>退款金额：<%=returngoods.get("return_money") %>元</p>
						<%}%>
						<p>支付状态：<%int state=payment.getInt("state"); 
									if(state==0){%>
									<font color="#000055">申请支付</font>
									<%}else if(state==1){%>
									<font color="#555555">支付取消</font>
									<%}else if(state==2){%>
									<font color="#00AA55">支付完成</font>
									<%}else if(state==3){%>
									<font color="#55aa55">退款完成</font>
									<%}%></p>
						<hr>
						<p>付款方：</p>
						<p>账号：<%int type_out=payment.getInt("type"); 
						if(type_out==0){%>
						<%=payment.get("payment_account") %>
						<%}else{%>
						河北热播购网络科技有限公司
						<%}%></p>
						<hr>
						<p>收款方：</p>
						<p>账号：<%int type_in=payment.getInt("type"); 
						if(type_in==1){%>
						<%=payment.get("user_alipay") %>
						<%}else{%>
						河北热播购网络科技有限公司
						<%}%></p>
						
						
						<div class="mb-xs text-center">
                        <a class="btn btn-facebook mb-md ml-xs mr-xs" href="../payment/paymentView" >返回</a>
					</div>
				</div>
			</section>
<!-- Specific Page Vendor -->
<!-- Vendor -->
<script src="../admin/js/jquery.js"></script>
<!-- Theme Base, Components and Settings -->
<script src="../admin/js/theme.js"></script>
<!-- Theme Custom -->
<script src="../admin/js/theme.custom.js"></script>
<!-- Theme Initialization Files -->
<script src="../admin/js/theme.init.js"></script>
<!-- Examples -->
<script src="../admin/js/tables/examples.datatables.default.js"></script>
<script src="../admin/js/tables/examples.datatables.row.with.details.js"></script>
<script src="../admin/js/tables/examples.datatables.tabletools.js"></script>
<script type="text/javascript">
</script>
</body>
</html>